home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2001 / MacHack 2001.toast / pc / Sessions / Traut / ZStrings / Source / Win32 / Win32ZStringToolsDlg.h < prev   
Encoding:
C/C++ Source or Header  |  2001-06-23  |  2.9 KB  |  112 lines

  1. /*==================================================================
  2.     File:        Win32ZStringToolsDlg.h
  3.  
  4.     Contains:    Tool for creating override libraries for
  5.                 ZStrings on the  Windows
  6.  
  7.     Written by:    Nalini Prakash
  8.  
  9.     Copyright:    2000-2001 Connectix Corporation
  10.     
  11.     This source has been placed into the public domain by
  12.     Connectix Corporation. You have the right to modify, 
  13.     distribute or use this code without any legal limitations
  14.     or finanicial/licensing requirements. Connectix is not 
  15.     liable for any problems that result from the use of this 
  16.     code.
  17.     
  18.     If you have comments, feedback, questions, or would like
  19.     to submit bug fixes or updates to this code, please email
  20.     opensource@connectix.com.
  21. ==================================================================*/
  22.  
  23.  
  24. #if !defined(AFX_WIN32ZSTRINGTOOLSDLG_H__18E49FE3_148D_4AF3_9730_4EE4D953DE8C__INCLUDED_)
  25. #define AFX_WIN32ZSTRINGTOOLSDLG_H__18E49FE3_148D_4AF3_9730_4EE4D953DE8C__INCLUDED_
  26.  
  27. #if _MSC_VER > 1000
  28. #pragma once
  29. #endif // _MSC_VER > 1000
  30.  
  31. #include "resource.h"
  32. #include "AcceptFilesEdit.h"
  33.  
  34. /////////////////////////////////////////////////////////////////////////////
  35. // CWin32ZStringToolsDlg dialog
  36.  
  37. class CWin32ZStringToolsDlg : public CDialog
  38. {
  39. // Construction
  40. public:
  41.     CWin32ZStringToolsDlg(
  42.         CWnd *        pParent = NULL);    // standard constructor
  43.  
  44.     enum {
  45.         kOutputNumericTag    = 0,
  46.         kOutputAlphaTag        = 1
  47.     };
  48.  
  49. // Dialog Data
  50.     //{{AFX_DATA(CWin32ZStringToolsDlg)
  51.     enum { IDD = IDD_WIN32ZSTRINGTOOLS_DIALOG };
  52.     AcceptFilesEdit    mCtrlSourceFile;
  53.     AcceptFilesEdit    mCtrlCompareFile;
  54.     AcceptFilesEdit    mCtrlDestFile;
  55.     CString            mCompareFileName;
  56.     CString            mDestFileName;
  57.     CString            mSourceFileName;
  58.     BOOL            mCategorizeOutput;
  59.     BOOL            mAllowTagSemicolon;
  60.     int                mOutputTagFormat;
  61.     BOOL    mFlagDuplicates;
  62.     BOOL    mOutputWarnings;
  63.     BOOL    mConvertHighASCIIChar;
  64.     //}}AFX_DATA
  65.  
  66.     // ClassWizard generated virtual function overrides
  67.     //{{AFX_VIRTUAL(CWin32ZStringToolsDlg)
  68.     protected:
  69.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  70.     //}}AFX_VIRTUAL
  71.  
  72. // Implementation
  73. protected:
  74.     HICON m_hIcon;
  75.  
  76.     // Generated message map functions
  77.     //{{AFX_MSG(CWin32ZStringToolsDlg)
  78.     virtual BOOL OnInitDialog();
  79.     afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  80.     afx_msg void OnPaint();
  81.     afx_msg HCURSOR OnQueryDragIcon();
  82.     afx_msg void OnExtract();
  83.     afx_msg void OnOverride();
  84.     afx_msg void OnOk();
  85.     virtual void OnCancel();
  86.     afx_msg void OnChangeEDITBoxes();
  87.     afx_msg void OnBrowseSource();
  88.     afx_msg void OnBrowseDestination();
  89.     afx_msg void OnBrowseCompare();
  90.     afx_msg void OnCompare();
  91.     //}}AFX_MSG
  92.     DECLARE_MESSAGE_MAP()
  93.  
  94. private:
  95.     void 
  96.     UpdateButtons();
  97.  
  98.     static char *            sSourceFileTitle;
  99.     static char *            sCompareFileTitle;
  100.     static char *            sDestFileTitle;
  101.  
  102.     CString
  103.     GetFileName(
  104.         char*    dialogTitle);        
  105. };
  106.  
  107. //{{AFX_INSERT_LOCATION}}
  108. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  109.  
  110. #endif // !defined(AFX_WIN32ZSTRINGTOOLSDLG_H__18E49FE3_148D_4AF3_9730_4EE4D953DE8C__INCLUDED_)
  111.  
  112.